package web;

import java.util.Map;

public class Request {
    private String method;
    private String path;
    private Map<String, String> queryParams;
    private String body;

    public Request(String method, String path, Map<String, String> queryParams, String body) {
        this.method = method;
        this.path = path;
        this.queryParams = queryParams;
        this.body = body;
    }

    // Getters
    public String getMethod() { return method; }
    public String getPath() { return path; }
    public Map<String, String> getQueryParams() { return queryParams; }
    public String getBody() { return body; }

    @Override
    public String toString() {
        return "Request{" +
                "method='" + method + '\'' +
                ", path='" + path + '\'' +
                ", queryParams=" + queryParams +
                ", body='" + body + '\'' +
                '}';
    }
}